package cn.uniqueinfo.dp.enums;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-04 16:06:16
 * @description:控制器操作方法枚举
 */
public enum  CtrlMethodEnum {

    ADD_OK(1,"新增成功"),
    ADD_ERR(0,"新增失败"),
    EDIT_OK(1,"修改成功"),
    EDIT_ERR(0,"修改失败"),
    GET_ERR(0,"获取对象失败"),
    DEL_OK(1,"删除成功"),
    DEL_ERR(0,"删除失败");

    private Integer code;
    private String  msg;

    CtrlMethodEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
